<?php
namespace YouXiMi\Controller;
use Think\Controller;
use LaneWeChat\Core\Popularize;
class IndexController extends Controller {
    public function index(){
        echo "你访问的是游戏迷之家";
    }
    public function qrCode(){
        header('Content-type: image/jpg');
        require C('PUBLIC').'/Public/LaneWeChat/lanewechat.php';
        $s_id = I('s_id');
        $id = Popularize::createTicket(1,7200,$s_id);
        $qrCode = Popularize::getQrcode($id['ticket'],'');
        echo $qrCode;
    }
}
